\hypertarget{mdp__permutations_8h}{
\section{/Users/mdipierro/Desktop/SciDac/development/Libraries/mdp\_\-permutations.h File Reference}
\label{mdp__permutations_8h}\index{/Users/mdipierro/Desktop/SciDac/development/Libraries/mdp\_\-permutations.h@{/Users/mdipierro/Desktop/SciDac/development/Libraries/mdp\_\-permutations.h}}
}


This graph shows which files directly or indirectly include this file:\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{mdp__permutations_8h_b3ab614cea223eaddec0304e34adde9d}{mdp\_\-permutation} (int n, int k, int i)
\end{CompactItemize}


\subsection{Detailed Description}
\begin{Desc}
\item[Version:]3-1-2005 \end{Desc}
\begin{Desc}
\item[Author:]Massimo Di Pierro $<$\href{mailto:mdipierro@cs.depaul.edu}{\tt mdipierro@cs.depaul.edu}$>$\end{Desc}
Functions to compute permutations

Licensed under GPL2 license Read attached license in file mdp\_\-license.pdf This file cannot be distributed without file mdp\_\-license.pdf 

\subsection{Function Documentation}
\hypertarget{mdp__permutations_8h_b3ab614cea223eaddec0304e34adde9d}{
\index{mdp\_\-permutations.h@{mdp\_\-permutations.h}!mdp\_\-permutation@{mdp\_\-permutation}}
\index{mdp\_\-permutation@{mdp\_\-permutation}!mdp_permutations.h@{mdp\_\-permutations.h}}
\subsubsection[{mdp\_\-permutation}]{\setlength{\rightskip}{0pt plus 5cm}int mdp\_\-permutation (int {\em n}, \/  int {\em k}, \/  int {\em i})}}
\label{mdp__permutations_8h_b3ab614cea223eaddec0304e34adde9d}


Returns j-th element of the k-th permutations of n numbers For example if n=4 \mbox{[}0123\mbox{]} k=0 \mbox{[}0132\mbox{]} k=1 ... \mbox{[}3210\mbox{]} k=23 Returns -1 on error when (i$>$n $|$$|$ k$>$n\_\-permutations(n)) 